/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.common;

/**
 *
 * @author Wei Liu
 */
public class SeatCategories
{

    private static final int A = 1;
    private static final int B = 2;
    private static final int C = 3;
    private static final int D = 4;
    private static final int E = 5;

    /**
     * @return the A
     */
    public static int getA()
    {
        return A;
    }

    /**
     * @return the B
     */
    public static int getB()
    {
        return B;
    }

    /**
     * @return the C
     */
    public static int getC()
    {
        return C;
    }

    /**
     * @return the D
     */
    public static int getD()
    {
        return D;
    }

    /**
     * @return the E
     */
    public static int getE()
    {
        return E;
    }

    public static String getSeatCategory(int i)
    {
        switch (i)
        {
            case 1:
                return "A";
            case 2:
                return "B";
            case 3:
                return "C";
            case 4:
                return "D";
            case 5:
                return "E";
        }

        return null;
    }

    public static int getSeatCategory(String category)
    {
        if ("A".equals(category))
        {
            return 1;
        }
        else if ("B".equals(category))
        {
            return 2;
        }
        else if ("C".equals(category))
        {
            return 3;
        }
        else if ("D".equals(category))
        {
            return 4;
        }
        else if ("E".equals(category))
        {
            return 5;
        }
        return 0;
    }
}
